/**
 * 
 */
package uk.ac.manchester.tewpl.iceiface.client.model;

import com.extjs.gxt.ui.client.data.BaseModelData;
import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * @author roland
 * 
 */
public class KBAnnotationValueModel extends BaseModelData implements IsSerializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public static final String ANNOTATION = "annotation";
	public static final String ANNOTATION_URI = "annotationUri";
	public static final String VALUE = "value";
	public static final String LOCALE = "locale";

	public KBAnnotationValueModel() {
		// TODO Auto-generated constructor stub
	}

	public KBAnnotationValueModel(String annotationUri, String value,
			String locale) {

		setValue(value);
		setLocale(locale);
	}

	/**
	 * @return the value
	 */
	public String getValue() {
		return get(VALUE);
	}

	/**
	 * @param value
	 *            the value to set
	 */
	public void setValue(String value) {
		set(VALUE, value);
	}

	/**
	 * @return the locale
	 */
	public String getLocale() {
		return get(LOCALE);
	}

	/**
	 * @param locale
	 *            the locale to set
	 */
	public void setLocale(String locale) {
		set(LOCALE, locale);
	}

	public void setAnnotationUri(String annotationUri) {
		set(ANNOTATION_URI, annotationUri);
	}

	public String getAnnotationUri() {
		return get(ANNOTATION_URI);
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return (String) get(VALUE);
	}
}
